<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: include/hardware/powman.h Source File</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.1.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('rp2__common_2hardware__powman_2include_2hardware_2powman_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">powman.h</div></div>
</div><!--header-->
<div class="contents">
<a href="rp2__common_2hardware__powman_2include_2hardware_2powman_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> */</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#ifndef _HARDWARE_POWMAN_H</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#define _HARDWARE_POWMAN_H</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;<a class="code" href="pico_8h.html">pico.h</a>&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;hardware/structs/powman.h&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="comment">// PICO_CONFIG: PARAM_ASSERTIONS_ENABLED_HARDWARE_POWMAN, Enable/disable hardware_powman assertions, type=bool, default=0, group=hardware_powman</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_POWMAN</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#define PARAM_ASSERTIONS_ENABLED_HARDWARE_POWMAN 0</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga2659af7a723a142b57a72add489d4f4e">powman_timer_set_1khz_tick_source_lposc</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#gacc08f760516b1b09a58a7121cdfc1f49">powman_timer_set_1khz_tick_source_lposc_with_hz</a>(uint32_t lposc_freq_hz);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga9ee3b6c28b8b24f3c22022b757082448">powman_timer_set_1khz_tick_source_xosc</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga8fb8797fc3fbc9b7e9c30c6ae316065c">powman_timer_set_1khz_tick_source_xosc_with_hz</a>(uint32_t xosc_freq_hz);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga7e0048a9fe486dc4e6cc6b9ae7699924">powman_timer_set_1khz_tick_source_gpio</a>(uint32_t gpio);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga4b843b70eaf83fb4b0d2fbee8ce1a015">powman_timer_enable_gpio_1hz_sync</a>(uint32_t gpio);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga5b035f3737ec4d2261414e931c5a8de3">powman_timer_disable_gpio_1hz_sync</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>uint64_t <a class="code hl_function" href="group__hardware__powman.html#ga7dc3aafeae8ba5a29f67970454d38046">powman_timer_get_ms</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#gaa2f30fea7e5b78efc2d89cf5e5f215ed">powman_timer_set_ms</a>(uint64_t time_ms);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#gac8aa99d990fc2e793c2cc3ff680ce41f">powman_timer_enable_alarm_at_ms</a>(uint64_t alarm_time_ms);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#gaf78bad976be73c9480933d73bf358a23">powman_timer_disable_alarm</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga8bb53e1b2c3e5a553aedfbff18d35a50">  106</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga8bb53e1b2c3e5a553aedfbff18d35a50">powman_set_bits</a>(<span class="keyword">volatile</span> uint32_t *reg, uint32_t bits) {</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>    invalid_params_if(HARDWARE_POWMAN, bits &gt;&gt; 16);</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>    <a class="code hl_function" href="group__hardware__base.html#ga625e737a57f12211cf1f634ca5095ae4">hw_set_bits</a>(reg, POWMAN_PASSWORD_BITS | bits);</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>}</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga5fe0817fd5f0baaefe9e086705e3b4e8">  120</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga5fe0817fd5f0baaefe9e086705e3b4e8">powman_clear_bits</a>(<span class="keyword">volatile</span> uint32_t *reg, uint32_t bits) {</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>    invalid_params_if(HARDWARE_POWMAN, bits &gt;&gt; 16);</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    <a class="code hl_function" href="group__hardware__base.html#gafd1c089df868d987daf95870b501c2ed">hw_clear_bits</a>(reg, POWMAN_PASSWORD_BITS | bits);</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>}</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga6e2dd3c584d9eb2a40202b6d2dbddccd">  128</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="group__hardware__powman.html#ga6e2dd3c584d9eb2a40202b6d2dbddccd">powman_timer_is_running</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    <span class="keywordflow">return</span> powman_hw-&gt;timer &amp; POWMAN_TIMER_RUN_BITS;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>}</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga7d6d9931a08e2999606e434ae7681fc6">  135</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga7d6d9931a08e2999606e434ae7681fc6">powman_timer_stop</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    <a class="code hl_function" href="group__hardware__powman.html#ga5fe0817fd5f0baaefe9e086705e3b4e8">powman_clear_bits</a>(&amp;powman_hw-&gt;timer, POWMAN_TIMER_RUN_BITS);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>}</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga0002ace8105882f2ed726fdf2bd2a284">  142</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga0002ace8105882f2ed726fdf2bd2a284">powman_timer_start</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>    <a class="code hl_function" href="group__hardware__powman.html#ga8bb53e1b2c3e5a553aedfbff18d35a50">powman_set_bits</a>(&amp;powman_hw-&gt;timer, POWMAN_TIMER_RUN_BITS);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>}</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span> </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga4c25eb6c57761d12e74c196082be405d">  152</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga4c25eb6c57761d12e74c196082be405d">powman_clear_alarm</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>    <a class="code hl_function" href="group__hardware__powman.html#ga5fe0817fd5f0baaefe9e086705e3b4e8">powman_clear_bits</a>(&amp;powman_hw-&gt;timer, POWMAN_TIMER_ALARM_BITS);</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>}</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#gace732bfd97b0762a2903cf7e32606e32">  159</a></span><span class="keyword">enum</span> <a class="code hl_enumeration" href="group__hardware__powman.html#gace732bfd97b0762a2903cf7e32606e32">powman_power_domains</a> {</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a00c076ec026ca9c1e0c2ab8502705382">  160</a></span>    <a class="code hl_enumvalue" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a00c076ec026ca9c1e0c2ab8502705382">POWMAN_POWER_DOMAIN_SRAM_BANK1</a> = 0,    </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a0cf27623a721de09d60d6cd506911666">  161</a></span>    <a class="code hl_enumvalue" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a0cf27623a721de09d60d6cd506911666">POWMAN_POWER_DOMAIN_SRAM_BANK0</a> = 1,    </div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a100701ea934dc58c777c020cd8b766c0">  162</a></span>    <a class="code hl_enumvalue" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a100701ea934dc58c777c020cd8b766c0">POWMAN_POWER_DOMAIN_XIP_CACHE</a> = 2,     </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a37ba2cba72976391dc9d83c66cfef3c5">  163</a></span>    <a class="code hl_enumvalue" href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a37ba2cba72976391dc9d83c66cfef3c5">POWMAN_POWER_DOMAIN_SWITCHED_CORE</a> = 3, </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>    POWMAN_POWER_DOMAIN_COUNT = 4,</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>};</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span><span class="keyword">typedef</span> uint32_t powman_power_state;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>powman_power_state <a class="code hl_function" href="group__hardware__powman.html#gac665005a92a55a827ac9aafac7a3e42d">powman_get_power_state</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__hardware__powman.html#ga37324a8d6e9b4416a1e8837cbca44275">powman_set_power_state</a>(powman_power_state state);</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span><span class="preprocessor">#define POWMAN_POWER_STATE_NONE 0</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#gaf734b0aa9b100eedc4a923e97777bb55">  194</a></span><span class="keyword">static</span> <span class="keyword">inline</span> powman_power_state <a class="code hl_function" href="group__hardware__powman.html#gaf734b0aa9b100eedc4a923e97777bb55">powman_power_state_with_domain_on</a>(powman_power_state orig, <span class="keyword">enum</span> <a class="code hl_enumeration" href="group__hardware__powman.html#gace732bfd97b0762a2903cf7e32606e32">powman_power_domains</a> domain) {</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>    invalid_params_if(HARDWARE_POWMAN, domain &gt;= POWMAN_POWER_DOMAIN_COUNT);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>    <span class="keywordflow">return</span> orig | (1u &lt;&lt; domain);</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>}</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span> </div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#gaf203861a11946a64fefcab10288aa2fd">  204</a></span><span class="keyword">static</span> <span class="keyword">inline</span> powman_power_state <a class="code hl_function" href="group__hardware__powman.html#gaf203861a11946a64fefcab10288aa2fd">powman_power_state_with_domain_off</a>(powman_power_state orig, <span class="keyword">enum</span> <a class="code hl_enumeration" href="group__hardware__powman.html#gace732bfd97b0762a2903cf7e32606e32">powman_power_domains</a> domain) {</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>    invalid_params_if(HARDWARE_POWMAN, domain &gt;= POWMAN_POWER_DOMAIN_COUNT);</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>    <span class="keywordflow">return</span> orig &amp;= ~(1u &lt;&lt; domain);</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>}</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span> </div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga3367f89af96ca94b74d521a962db4685">  214</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="group__hardware__powman.html#ga3367f89af96ca94b74d521a962db4685">powman_power_state_is_domain_on</a>(powman_power_state state, <span class="keyword">enum</span> <a class="code hl_enumeration" href="group__hardware__powman.html#gace732bfd97b0762a2903cf7e32606e32">powman_power_domains</a> domain) {</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>    invalid_params_if(HARDWARE_POWMAN, domain &gt;= POWMAN_POWER_DOMAIN_COUNT);</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>    <span class="keywordflow">return</span> state &amp; (1u &lt;&lt; domain);</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span>}</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga284eb8137db4f4aa0ef21f52f2cd0f0a">powman_enable_alarm_wakeup_at_ms</a>(uint64_t alarm_time_ms);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#gabd8304302bd7e666f73f5b08bdf2b110">powman_enable_gpio_wakeup</a>(uint gpio_wakeup_num, uint32_t gpio, <span class="keywordtype">bool</span> edge, <span class="keywordtype">bool</span> high);</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga63fbf4b74797ee6f7ef1f9b103200b8e">powman_disable_alarm_wakeup</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span> </div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#gaf61ade848ee36a39b2389cc21d112132">powman_disable_gpio_wakeup</a>(uint gpio_wakeup_num);</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span> </div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#gacd0efe4dd2bdc07d5307bdae4fa24af6">powman_disable_all_wakeups</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span> </div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span><span class="keywordtype">bool</span> <a class="code hl_function" href="group__hardware__powman.html#ga8b055fd9bd2a7704c6ada5e903b5eecd">powman_configure_wakeup_state</a>(powman_power_state sleep_state, powman_power_state wakeup_state);</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"><a class="line" href="group__hardware__powman.html#ga268335a57afa4f047a780b0e38c43876">  268</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__powman.html#ga268335a57afa4f047a780b0e38c43876">powman_set_debug_power_request_ignored</a>(<span class="keywordtype">bool</span> ignored) {</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>    <span class="keywordflow">if</span> (ignored)</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>        <a class="code hl_function" href="group__hardware__powman.html#ga8bb53e1b2c3e5a553aedfbff18d35a50">powman_set_bits</a>(&amp;powman_hw-&gt;dbg_pwrcfg, 1);</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>    <span class="keywordflow">else</span></div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>        <a class="code hl_function" href="group__hardware__powman.html#ga5fe0817fd5f0baaefe9e086705e3b4e8">powman_clear_bits</a>(&amp;powman_hw-&gt;dbg_pwrcfg, 0);</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>}</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span> </div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="agroup__hardware__base_html_ga625e737a57f12211cf1f634ca5095ae4"><div class="ttname"><a href="group__hardware__base.html#ga625e737a57f12211cf1f634ca5095ae4">hw_set_bits</a></div><div class="ttdeci">static __force_inline void hw_set_bits(io_rw_32 *addr, uint32_t mask)</div><div class="ttdoc">Atomically set the specified bits to 1 in a HW register.</div><div class="ttdef"><b>Definition:</b> address_mapped.h:135</div></div>
<div class="ttc" id="agroup__hardware__base_html_gafd1c089df868d987daf95870b501c2ed"><div class="ttname"><a href="group__hardware__base.html#gafd1c089df868d987daf95870b501c2ed">hw_clear_bits</a></div><div class="ttdeci">static __force_inline void hw_clear_bits(io_rw_32 *addr, uint32_t mask)</div><div class="ttdoc">Atomically clear the specified bits to 0 in a HW register.</div><div class="ttdef"><b>Definition:</b> address_mapped.h:145</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga0002ace8105882f2ed726fdf2bd2a284"><div class="ttname"><a href="group__hardware__powman.html#ga0002ace8105882f2ed726fdf2bd2a284">powman_timer_start</a></div><div class="ttdeci">static void powman_timer_start(void)</div><div class="ttdoc">Start the powman timer.</div><div class="ttdef"><b>Definition:</b> powman.h:142</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga2659af7a723a142b57a72add489d4f4e"><div class="ttname"><a href="group__hardware__powman.html#ga2659af7a723a142b57a72add489d4f4e">powman_timer_set_1khz_tick_source_lposc</a></div><div class="ttdeci">void powman_timer_set_1khz_tick_source_lposc(void)</div><div class="ttdoc">Use the ~32KHz low power oscillator as the powman timer source.</div><div class="ttdef"><b>Definition:</b> powman.c:64</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga268335a57afa4f047a780b0e38c43876"><div class="ttname"><a href="group__hardware__powman.html#ga268335a57afa4f047a780b0e38c43876">powman_set_debug_power_request_ignored</a></div><div class="ttdeci">static void powman_set_debug_power_request_ignored(bool ignored)</div><div class="ttdoc">Ignore wake up when the debugger is attached.</div><div class="ttdef"><b>Definition:</b> powman.h:268</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga284eb8137db4f4aa0ef21f52f2cd0f0a"><div class="ttname"><a href="group__hardware__powman.html#ga284eb8137db4f4aa0ef21f52f2cd0f0a">powman_enable_alarm_wakeup_at_ms</a></div><div class="ttdeci">void powman_enable_alarm_wakeup_at_ms(uint64_t alarm_time_ms)</div><div class="ttdoc">Wake up from an alarm at a given time.</div><div class="ttdef"><b>Definition:</b> powman.c:220</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga3367f89af96ca94b74d521a962db4685"><div class="ttname"><a href="group__hardware__powman.html#ga3367f89af96ca94b74d521a962db4685">powman_power_state_is_domain_on</a></div><div class="ttdeci">static bool powman_power_state_is_domain_on(powman_power_state state, enum powman_power_domains domain)</div><div class="ttdoc">Helper function to check if a domain is on in a given powman_power_state.</div><div class="ttdef"><b>Definition:</b> powman.h:214</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga37324a8d6e9b4416a1e8837cbca44275"><div class="ttname"><a href="group__hardware__powman.html#ga37324a8d6e9b4416a1e8837cbca44275">powman_set_power_state</a></div><div class="ttdeci">int powman_set_power_state(powman_power_state state)</div><div class="ttdoc">Set the power state.</div><div class="ttdef"><b>Definition:</b> powman.c:139</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga4b843b70eaf83fb4b0d2fbee8ce1a015"><div class="ttname"><a href="group__hardware__powman.html#ga4b843b70eaf83fb4b0d2fbee8ce1a015">powman_timer_enable_gpio_1hz_sync</a></div><div class="ttdeci">void powman_timer_enable_gpio_1hz_sync(uint32_t gpio)</div><div class="ttdoc">Use a 1Hz external signal as the powman timer source for seconds only.</div><div class="ttdef"><b>Definition:</b> powman.c:118</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga4c25eb6c57761d12e74c196082be405d"><div class="ttname"><a href="group__hardware__powman.html#ga4c25eb6c57761d12e74c196082be405d">powman_clear_alarm</a></div><div class="ttdeci">static void powman_clear_alarm(void)</div><div class="ttdoc">Clears the powman alarm.</div><div class="ttdef"><b>Definition:</b> powman.h:152</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga5b035f3737ec4d2261414e931c5a8de3"><div class="ttname"><a href="group__hardware__powman.html#ga5b035f3737ec4d2261414e931c5a8de3">powman_timer_disable_gpio_1hz_sync</a></div><div class="ttdeci">void powman_timer_disable_gpio_1hz_sync(void)</div><div class="ttdoc">Stop using 1Hz external signal as the powman timer source for seconds.</div><div class="ttdef"><b>Definition:</b> powman.c:123</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga5fe0817fd5f0baaefe9e086705e3b4e8"><div class="ttname"><a href="group__hardware__powman.html#ga5fe0817fd5f0baaefe9e086705e3b4e8">powman_clear_bits</a></div><div class="ttdeci">static void powman_clear_bits(volatile uint32_t *reg, uint32_t bits)</div><div class="ttdoc">hw_clear_bits helper function</div><div class="ttdef"><b>Definition:</b> powman.h:120</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga63fbf4b74797ee6f7ef1f9b103200b8e"><div class="ttname"><a href="group__hardware__powman.html#ga63fbf4b74797ee6f7ef1f9b103200b8e">powman_disable_alarm_wakeup</a></div><div class="ttdeci">void powman_disable_alarm_wakeup(void)</div><div class="ttdoc">Disable waking up from alarm.</div><div class="ttdef"><b>Definition:</b> powman.c:225</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga6e2dd3c584d9eb2a40202b6d2dbddccd"><div class="ttname"><a href="group__hardware__powman.html#ga6e2dd3c584d9eb2a40202b6d2dbddccd">powman_timer_is_running</a></div><div class="ttdeci">static bool powman_timer_is_running(void)</div><div class="ttdoc">Determine if the powman timer is running.</div><div class="ttdef"><b>Definition:</b> powman.h:128</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga7d6d9931a08e2999606e434ae7681fc6"><div class="ttname"><a href="group__hardware__powman.html#ga7d6d9931a08e2999606e434ae7681fc6">powman_timer_stop</a></div><div class="ttdeci">static void powman_timer_stop(void)</div><div class="ttdoc">Stop the powman timer.</div><div class="ttdef"><b>Definition:</b> powman.h:135</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga7dc3aafeae8ba5a29f67970454d38046"><div class="ttname"><a href="group__hardware__powman.html#ga7dc3aafeae8ba5a29f67970454d38046">powman_timer_get_ms</a></div><div class="ttdeci">uint64_t powman_timer_get_ms(void)</div><div class="ttdoc">Returns current time in ms.</div><div class="ttdef"><b>Definition:</b> powman.c:46</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga7e0048a9fe486dc4e6cc6b9ae7699924"><div class="ttname"><a href="group__hardware__powman.html#ga7e0048a9fe486dc4e6cc6b9ae7699924">powman_timer_set_1khz_tick_source_gpio</a></div><div class="ttdeci">void powman_timer_set_1khz_tick_source_gpio(uint32_t gpio)</div><div class="ttdoc">Use a 1KHz external tick as the powman timer source.</div><div class="ttdef"><b>Definition:</b> powman.c:113</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga8b055fd9bd2a7704c6ada5e903b5eecd"><div class="ttname"><a href="group__hardware__powman.html#ga8b055fd9bd2a7704c6ada5e903b5eecd">powman_configure_wakeup_state</a></div><div class="ttdeci">bool powman_configure_wakeup_state(powman_power_state sleep_state, powman_power_state wakeup_state)</div><div class="ttdoc">Configure sleep state and wakeup state.</div><div class="ttdef"><b>Definition:</b> powman.c:183</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga8bb53e1b2c3e5a553aedfbff18d35a50"><div class="ttname"><a href="group__hardware__powman.html#ga8bb53e1b2c3e5a553aedfbff18d35a50">powman_set_bits</a></div><div class="ttdeci">static void powman_set_bits(volatile uint32_t *reg, uint32_t bits)</div><div class="ttdoc">hw_set_bits helper function</div><div class="ttdef"><b>Definition:</b> powman.h:106</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga8fb8797fc3fbc9b7e9c30c6ae316065c"><div class="ttname"><a href="group__hardware__powman.html#ga8fb8797fc3fbc9b7e9c30c6ae316065c">powman_timer_set_1khz_tick_source_xosc_with_hz</a></div><div class="ttdeci">void powman_timer_set_1khz_tick_source_xosc_with_hz(uint32_t xosc_freq_hz)</div><div class="ttdoc">Use the crystal oscillator as the powman timer source.</div><div class="ttdef"><b>Definition:</b> powman.c:86</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ga9ee3b6c28b8b24f3c22022b757082448"><div class="ttname"><a href="group__hardware__powman.html#ga9ee3b6c28b8b24f3c22022b757082448">powman_timer_set_1khz_tick_source_xosc</a></div><div class="ttdeci">void powman_timer_set_1khz_tick_source_xosc(void)</div><div class="ttdoc">Use the crystal oscillator as the powman timer source.</div><div class="ttdef"><b>Definition:</b> powman.c:82</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gaa2f30fea7e5b78efc2d89cf5e5f215ed"><div class="ttname"><a href="group__hardware__powman.html#gaa2f30fea7e5b78efc2d89cf5e5f215ed">powman_timer_set_ms</a></div><div class="ttdeci">void powman_timer_set_ms(uint64_t time_ms)</div><div class="ttdoc">Set current time in ms.</div><div class="ttdef"><b>Definition:</b> powman.c:36</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gabd8304302bd7e666f73f5b08bdf2b110"><div class="ttname"><a href="group__hardware__powman.html#gabd8304302bd7e666f73f5b08bdf2b110">powman_enable_gpio_wakeup</a></div><div class="ttdeci">void powman_enable_gpio_wakeup(uint gpio_wakeup_num, uint32_t gpio, bool edge, bool high)</div><div class="ttdoc">Wake up from a gpio.</div><div class="ttdef"><b>Definition:</b> powman.c:230</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gac665005a92a55a827ac9aafac7a3e42d"><div class="ttname"><a href="group__hardware__powman.html#gac665005a92a55a827ac9aafac7a3e42d">powman_get_power_state</a></div><div class="ttdeci">powman_power_state powman_get_power_state(void)</div><div class="ttdoc">Get the current power state.</div><div class="ttdef"><b>Definition:</b> powman.c:127</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gac8aa99d990fc2e793c2cc3ff680ce41f"><div class="ttname"><a href="group__hardware__powman.html#gac8aa99d990fc2e793c2cc3ff680ce41f">powman_timer_enable_alarm_at_ms</a></div><div class="ttdeci">void powman_timer_enable_alarm_at_ms(uint64_t alarm_time_ms)</div><div class="ttdoc">Set an alarm at an absolute time in ms.</div><div class="ttdef"><b>Definition:</b> powman.c:202</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gacc08f760516b1b09a58a7121cdfc1f49"><div class="ttname"><a href="group__hardware__powman.html#gacc08f760516b1b09a58a7121cdfc1f49">powman_timer_set_1khz_tick_source_lposc_with_hz</a></div><div class="ttdeci">void powman_timer_set_1khz_tick_source_lposc_with_hz(uint32_t lposc_freq_hz)</div><div class="ttdoc">Use the low power oscillator (specifying frequency) as the powman timer source.</div><div class="ttdef"><b>Definition:</b> powman.c:68</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gacd0efe4dd2bdc07d5307bdae4fa24af6"><div class="ttname"><a href="group__hardware__powman.html#gacd0efe4dd2bdc07d5307bdae4fa24af6">powman_disable_all_wakeups</a></div><div class="ttdeci">void powman_disable_all_wakeups(void)</div><div class="ttdoc">Disable all wakeup sources.</div><div class="ttdef"><b>Definition:</b> powman.c:254</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gace732bfd97b0762a2903cf7e32606e32"><div class="ttname"><a href="group__hardware__powman.html#gace732bfd97b0762a2903cf7e32606e32">powman_power_domains</a></div><div class="ttdeci">powman_power_domains</div><div class="ttdoc">Power domains of powman.</div><div class="ttdef"><b>Definition:</b> powman.h:159</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gaf203861a11946a64fefcab10288aa2fd"><div class="ttname"><a href="group__hardware__powman.html#gaf203861a11946a64fefcab10288aa2fd">powman_power_state_with_domain_off</a></div><div class="ttdeci">static powman_power_state powman_power_state_with_domain_off(powman_power_state orig, enum powman_power_domains domain)</div><div class="ttdoc">Helper function modify a powman_power_state to turn a domain off.</div><div class="ttdef"><b>Definition:</b> powman.h:204</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gaf61ade848ee36a39b2389cc21d112132"><div class="ttname"><a href="group__hardware__powman.html#gaf61ade848ee36a39b2389cc21d112132">powman_disable_gpio_wakeup</a></div><div class="ttdeci">void powman_disable_gpio_wakeup(uint gpio_wakeup_num)</div><div class="ttdoc">Disable wake up from a gpio.</div><div class="ttdef"><b>Definition:</b> powman.c:249</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gaf734b0aa9b100eedc4a923e97777bb55"><div class="ttname"><a href="group__hardware__powman.html#gaf734b0aa9b100eedc4a923e97777bb55">powman_power_state_with_domain_on</a></div><div class="ttdeci">static powman_power_state powman_power_state_with_domain_on(powman_power_state orig, enum powman_power_domains domain)</div><div class="ttdoc">Helper function modify a powman_power_state to turn a domain on.</div><div class="ttdef"><b>Definition:</b> powman.h:194</div></div>
<div class="ttc" id="agroup__hardware__powman_html_gaf78bad976be73c9480933d73bf358a23"><div class="ttname"><a href="group__hardware__powman.html#gaf78bad976be73c9480933d73bf358a23">powman_timer_disable_alarm</a></div><div class="ttdeci">void powman_timer_disable_alarm(void)</div><div class="ttdoc">Disable the alarm.</div><div class="ttdef"><b>Definition:</b> powman.c:215</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ggace732bfd97b0762a2903cf7e32606e32a00c076ec026ca9c1e0c2ab8502705382"><div class="ttname"><a href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a00c076ec026ca9c1e0c2ab8502705382">POWMAN_POWER_DOMAIN_SRAM_BANK1</a></div><div class="ttdeci">@ POWMAN_POWER_DOMAIN_SRAM_BANK1</div><div class="ttdoc">bank1 includes the top 256K of sram plus sram 8 and 9 (scratch x and scratch y)</div><div class="ttdef"><b>Definition:</b> powman.h:160</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ggace732bfd97b0762a2903cf7e32606e32a0cf27623a721de09d60d6cd506911666"><div class="ttname"><a href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a0cf27623a721de09d60d6cd506911666">POWMAN_POWER_DOMAIN_SRAM_BANK0</a></div><div class="ttdeci">@ POWMAN_POWER_DOMAIN_SRAM_BANK0</div><div class="ttdoc">bank0 is bottom 256K of sSRAM</div><div class="ttdef"><b>Definition:</b> powman.h:161</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ggace732bfd97b0762a2903cf7e32606e32a100701ea934dc58c777c020cd8b766c0"><div class="ttname"><a href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a100701ea934dc58c777c020cd8b766c0">POWMAN_POWER_DOMAIN_XIP_CACHE</a></div><div class="ttdeci">@ POWMAN_POWER_DOMAIN_XIP_CACHE</div><div class="ttdoc">XIP cache is 2x8K instances.</div><div class="ttdef"><b>Definition:</b> powman.h:162</div></div>
<div class="ttc" id="agroup__hardware__powman_html_ggace732bfd97b0762a2903cf7e32606e32a37ba2cba72976391dc9d83c66cfef3c5"><div class="ttname"><a href="group__hardware__powman.html#ggace732bfd97b0762a2903cf7e32606e32a37ba2cba72976391dc9d83c66cfef3c5">POWMAN_POWER_DOMAIN_SWITCHED_CORE</a></div><div class="ttdeci">@ POWMAN_POWER_DOMAIN_SWITCHED_CORE</div><div class="ttdoc">Switched core logic (processors, busfabric, peris etc)</div><div class="ttdef"><b>Definition:</b> powman.h:163</div></div>
<div class="ttc" id="apico_8h_html"><div class="ttname"><a href="pico_8h.html">pico.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>